home *** CD-ROM | disk | FTP | other *** search
-
- UGbase
- by: Joe Andrews
-
- This is the updated version of UGBase. Thanks to Dennis Hevener
- for his help in overcoming the 100 record limit and a few other
- changes that make the program run a little smoother.Some of the
- changes made in this version are the inclusion of a search routine
- that will allow you to search on any one or combination of fields,
- Selective print options, which allow you to print only those
- records found during the most recent search, and the option to
- print multiple copies. A few other bugs were fixed along the way
- also. Most of the following is a repeat of the last doc file, with
- the inclusion of the use of the added features.
-
- To use UGbase, simply load it in and go. The file called
- 'DBASE.RSC', which had to be in the same directory as UGBase
- before, can now be located in a few other locations. When UGBase
- trys to load the resource file, it will first look in the current
- directory. If it doesn't find it there, it will look current
- directory of the default drive, and finally in the root directory
- of the default drive. The program runs only in medium or high
- resolution. When the menu appears, you can select a variety of
- options. Most functions will be familiar to most of you, but I'll
- cover them anyway.
-
- The 'File' menu is where most of the editing options are found.
- At the top of the list is 'New'. This will let you start with a
- clean slate. 'New' first confirms that you really want to start a
- new data base because it clears out any records currently in
- memory. Selecting 'OK' will clear out memory and open up the input
- dialog box.
- 'Open' will load in a previously saved file. A file selector box
- will open up allowing you to select a file to load. One minor
- improvement here is that now the selector box opens up in the
- current directory, not the root directory as before. This will
- save a little time if your data fiels are in a folder with your
- program. UGBase checks to see whether the file is in UGBase format
- and will let you know if it isn't. One change here is that the
- old version of UGBase is NOT file compatible with the new version,
- although you CAN load in old files into the new version. This was
- done because there was a bug in the old program that dropped the
- last 7 bytes from each record before saving it. Since the vew
- version fixes this, all the record pointers were screwed up. So I
- put in a routine that checks to see which version the data file
- was saved with and loads it in accordingly. It only saves the file
- in the new format, therefore the old version is not compatible
- with the new. But, at least you don't have to type in all that
- stuff again!
-
- 'Save' will save the file in memory to disk under the current file
- name. If you previously loaded a file, UGBase will save it under
- that name. If you use this option on a new file, the file will be
- saved with a blank file name, so be sure to use 'Save as' for
- first-time saves.
-
- 'Erase' is exactly the same as 'New' except you aren't thrown
- into the input dialog box. It erases the file in memory and
- returns to the menu.
-
- Use 'Edit' to open up the input dialog box and view or modify
- records.
-
- Of course, 'Quit' will exit you back to the desktop or shell or
- whatever you ran UGBase from. Quitting will lose any data in
- memory so be sure to save anything you don't want to lose. UGBase
- makes sure you want to quit and lets you go back and save anything
- if you need to.
-
- In the 'Options' menu, you'll find 'Sort', which simply sorts
- the data base by last name only. In future versions, you'll be
- able to sort by any one or a number of fields. But for now, last
- names will have to do.
-
- The 'Search' function has been added to this version of UGBase.
- I think it is a very flexible and easy to use function, not to
- mention FAST. If you select Search, another dialog box will appear
- with a number of fields shown. All you have to do is enter data
- into each field you want searched. After you enter in all the
- data, select Search at the bottom of the box. UGBase will then
- find all matching records and open up the input box so you may
- view or edit them. Some buttons in the box work a little
- differently in search mode. First, the ADD button has been
- disabled. The viewing keys now act only on searched records, ie,
- pressing NEXT will show you the next matching record, PREV will
- show the previous, etc. Delete and Update work the same.
-
- 'Print' now works fully. I'll bet you were wondering what the
- other boxes were for! You have the option of selecting three
- styles of printout: Label style in normal print, Label in
- condensed print, and Column in condensed print. The reason you
- cannot print normal column is because all that info won't fit on a
- single line of paper. Selecting 'All' will print out all records
- in the file. 'Selective' will print out only those records found
- during the last Search operation. You can now enter in the number
- of copies you want printed, too.
-
- When you first run UGbase, you'll need to select 'New'. This
- will open up the input dialog box where you will enter in all the
- data. Simply type in the appropriate data into each field,
- pressing either 'Tab' or the up and down arrows to move between
- fields. When adding new names to the file, select 'Add' in the
- Edit box at the bottom of the dialog. This will add the record to
- the end of the file and step you to the next free record. Continue
- this way until all records are entered. After you enter the last
- record, instead of pressing 'Add', press 'Update'. This will save
- the record in memory as in Add, but will not open up a new entry.
- Update is also used for editing or updating an individual record
- in the file. You can delete any entry by pressing 'Delete'. This
- will erase the record from memory and move all the remaining
- records up to fill the gap. You can also view any record by using
- the Viewing buttons on the bottom left of the dialog. 'Next' and
- 'Prev' will move you forward and backward through the file, while
- 'Start' and 'End' will move you to the first and last records in
- the file, respectively.
-
- When you have finished entering all records, press 'Exit' to
- return to the menu. If you are working on a new file, you'll need
- to use 'Save as' and enter a file name to save the file under. If
- you've already saved the file, UGbase will use the file name you
- saved or loaded it under.
-
- Well, those are the new changes. Sorry it took so long to get a
- new version out, but with work and 'programmer's burnout' I really
- didn't feel much like working on the thing. Now I know why
- programmers take so long to get new versions of programs to us! It
- seems that the more bugs you fix, the more you find! As I said in
- the opening lines, Many thanks to Dennis Hevener (DHEVENER) for
- helping fix some of the problems. He is the one who fixed the 100
- record limit. Limit is now 200 records, but can be extended to the
- available memory.
- That's about it. This is my first project in C and on the ST,
- so the source code probably leaves a lot to be desired. There are
- probably a few bugs still lurking around, too, so if you find any,
- leave me mail for J.K.ANDREWS. I realize you could do this easily
- with DB Master One, but I had to do something productive and this
- was something our club needed. The source code is
- included so any of you with Megamax can modify and customize it to
- suit your taste. Also, if your printer is not Epson compatible,
- you can go in and modify the printer codes to fit your situation.
-
-
- Joe Andrews
-
- P.S. Our user's group, STar, is interested in corresponding with
- other user's groups. We publish a newsletter about once a month or
- when we get enough articles. Anyone interested in swapping
- newsletters can contact me here on GEnie, or you can write us at
- the addresses below.
-
-
- Joe Andrews Tom Hayslett (Pres)
- 115 Katherine St. 2003 Bob White Ct.
- Ft. Walton Beach, Fl, 32548 Mary Esther, Fl, 32569
-
-
-
-
-
-